#!/bin/sh
#####gmac test#####
ifconfig eth0 192.168.0.120
route add default gw 192.168.0.1
sleep 3
mount -t nfs -o nolock 193.169.4.2:/home_b/nfsroot/tyu/reboot_burn /mnt
sleep 1
i=`grep -c "" /mnt/reboot.txt`
echo reboot num $i
echo reboot$i >> /mnt/reboot.txt
#####msc test#####
#:<<OFF
mount /dev/mmcblk0p1 /opt/
sleep 1
cat /dev/mtd1 > /opt/kernel
#####sfc test#####
flash_eraseall /dev/mtd1
sleep 1
flashcp /opt/kernel /dev/mtd1
umount /opt/
umount /mnt/
#OFF
sleep 20
#####reboot test#####
reboot
